function(mllm_configure_blas)
  set(MLLM_BLAS_COMPILE_DEFINITIONS "" PARENT_SCOPE)
  set(MLLM_BLAS_LIBRARIES "" PARENT_SCOPE)
  set(MLLM_BLAS_INCLUDE_DIRS "" PARENT_SCOPE)
  if(MLLM_BLAS_VENDOR_ACCELERATE)
    find_library(ACCELERATE_FRAMEWORK Accelerate)
    if(ACCELERATE_FRAMEWORK)
      set(MLLM_BLAS_LIBRARIES ${ACCELERATE_FRAMEWORK} PARENT_SCOPE)
      set(MLLM_BLAS_COMPILE_DEFINITIONS MLLM_USE_BLAS=1 MLLM_BLAS_VENDOR_ACCELERATE=1 ACCELERATE_NEW_LAPACK ACCELERATE_LAPACK_ILP64 PARENT_SCOPE)
      message(STATUS "Found Apple Accelerate framework: ${ACCELERATE_FRAMEWORK}")
    else()
      message(WARNING "Apple Accelerate framework not found")
    endif()
  endif()
endfunction()
